import { reactive } from 'vue';
export const formConfig = (rules) => {
    return [
        {
            "els": [
                {
                    "label": "身份名称",
                    "el": "input",
                    "prop": "role_name",
                    "place": "身份名称"
                } 
            ]
        },
        {
            "els": [
                {
                    "label": "权限",
                    "el": "tree",
                    "prop": "rules",
                    "data": rules,
                    "defaultProps": {
                        "children": "children",
                        "label": "menu_name"
                    },
                    "checkedKeys": "checkedKeys"
                }
            ]
        },
        {
            "els": [
                {
                    "label": "状态",
                    "el": "switch",
                    "prop": "status",
                    "required": false
                }
            ]
        }
    ];
}